package com.qdu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdu.entity.Batch;
import com.qdu.mapper.BatchMapper;
import com.qdu.service.BatchService;
@Service
public class BatchServiceImpl implements BatchService{
	@Autowired
	BatchMapper BatchMapper;

	@Override
	public Batch selectBatchById(int id) {
		return BatchMapper.selectBatchById(id);
	}

	@Override
	public boolean addBatch(Batch Batch, int mjid) {
		return BatchMapper.addBatch(Batch, mjid);
	}

	@Override
	public boolean modifyBatch(Batch Batch, int mjid) {
		return BatchMapper.modifyBatch(Batch, mjid);
	}

	@Override
	public boolean deleteBatchById(int id) {
		return BatchMapper.deleteBatchById(id);
	}

	@Override
	public List<Batch> selectAllBatch() {
		return BatchMapper.selectAllBatch();
	}

	@Override
	public List<Batch> selectBatchByMjid(int mjid) {
		return BatchMapper.selectBatchByMjid(mjid);
	}
	
	
	
}
